package com.eliza.save

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.eliza.save.activity.AssetInfoActivity
import com.eliza.save.activity.InnerSavaActivity
import com.eliza.save.activity.OutSaveActivity
import com.eliza.save.activity.SharedPreferencesActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        findViewById<Button>(R.id.main_to_SharedPreferences).setOnClickListener {
            startActivity(Intent(this, SharedPreferencesActivity::class.java))
        }
        findViewById<Button>(R.id.main_to_innerSava).setOnClickListener {
            startActivity(Intent(this, InnerSavaActivity::class.java))
        }

        findViewById<Button>(R.id.main_to_outSava).setOnClickListener {
            startActivity(Intent(this, OutSaveActivity::class.java))
        }

        findViewById<Button>(R.id.main_to_anaInfo).setOnClickListener {
            startActivity(Intent(this, AssetInfoActivity::class.java))
        }
    }
}